using System;
using System.Globalization;
using System.Windows.Data;

namespace LayoutPlanning.Converters
{
    public class ZoomToStrokeThickness:IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value is double)
            {
                return 3/((double)value);
            }
            return 4;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}